package com.glsc.ngateway.common.api.common.enums;

import java.util.HashMap;
import java.util.Map;

public class PlatformConstant {

//	public static final String UP_WIN_FILE = "F:\\";

    public static final String UP_LINUX_FILE = "/otc/data/autoFax/";


    public static final String LDAP_OA = "OU=国联证券总部,OU=国联证券";


    public static final String LDAP_OA_USR = "sAMAccountName";


    public static final String SUCCESS = "0";

    public static final String RETURN_CODE_KEY = "code";


    public static final String RETURN_DATA_KEY = "data";

    public static final String RETURN_TOK_KEY = "token";


    public static final String RETURN_USERNAME_KEY = "userName";


    public static final String RETURN_TOK_ERROR = "error_token";


    public static final String LDAP_USER_NAME = "userName";

    public static final String TOKEN_EXPIRE_TIME = "expireTime";


    public static final String TOKEN_OVERDUE = "TOKEN-OVERDUE";  // 返回值为String 的异常至

    public static final String RSA_PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAISazYf/Lm+BMiB7j+VYRDFpi3DAzumALTAP/b52jnW7c8xSZnex0FwbYmEcDGs" +
            "yWOXyfIFoHIujCXDy6oZM8Ej4DtAeOIjZbH06bMKBEp19QiKvlQb5ZTONIMQQtcKyg0q0Jr9cEmTtbfzxviiuoA5Y3NdNsgT3jmACJ1Z/ZS4RAgMBAAECgYBpsSlY2GAeqA9YLKRI3M2dxM5LlKJ" +
            "XIr7hrB1Hjh+GX16w4Iyjoqq8f2cul7ieSIbq4Rez3VPDSLPhvvyHBxQNLulr1D1zDzRRj0s2qGc4lUtPtGu2uEa2luYLU4vaxQULkMaP0P4o4rxB/yJmnAJFHSkmMhBH6cFxk13ZoU7zQQJBAMJ" +
            "W1RW5RJ47nzyMrIJdgPWk8UEqnac2ukkEqG/pc4rvwqwg3zhD3ZV6jmKGbDBbZgX0YpOP4GJGN7TNci5/rU0CQQCurZjU+SncjIxYf26QkRNfWWthTct0lBBSTKyRQbPGNRlmmUAjvP58/uBrKky" +
            "p+rVN1tr2XL9IXw6yO5SI13HVAkBva2VDzTKgHcLP7j9BhuZW77g6CnrU0bXAA2GmuAu8jnXoRfh0w8QY3Wkg57zDhMNbip+xxn15GpT5nghmzGDJAkEAnLFC6ME+SQaXGwftAafyLdVD2vxzJvdv" +
            "ELSRFJhQkNuvFncgry5pR21HmTpPnSc1nka/EsKuIFiNEVsa6goBpQJAI6deyjTQioLMwqkS858SoycFZ+hbHW5tN1XRL/etqYRyxAVEkG4aVtfNrsM0b2jRgOPsKXf36Bw3mEA3Ozk64Q==" +
            "df723820";


    public static final String RSA_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCEms2H/y5vgTIge4/lWEQxaYtwwM7pgC0wD/2+do51u3PMUmZ3sdBcG2JhHAxrMljl8nyBaBy" +
            "Lowlw8uqGTPBI+A7QHjiI2Wx9OmzCgRKdfUIir5UG+WUzjSDEELXCsoNKtCa/XBJk7W388b4orqAOWNzXTbIE945gAidWf2UuEQIDAQAB";

/*
	public static final String RSA_PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAISazYf/Lm+BMiB7j+VYRDFpi3DAzumALTAP/b52jnW7c8xSZnex0FwbYmEcDGs" +
			"yWOXyfIFoHIujCXDy6oZM8Ej4DtAeOIjZbH06bMKBEp19QiKvlQb5ZTONIMQQtcKyg0q0Jr9cEmTtbfzxviiuoA5Y3NdNsgT3jmACJ1Z/ZS4RAgMBAAECgYBpsSlY2GAeqA9YLKRI3M2dxM5LlKJ" +
			"XIr7hrB1Hjh+GX16w4Iyjoqq8f2cul7ieSIbq4Rez3VPDSLPhvvyHBxQNLulr1D1zDzRRj0s2qGc4lUtPtGu2uEa2luYLU4vaxQULkMaP0P4o4rxB/yJmnAJFHSkmMhBH6cFxk13ZoU7zQQJBAMJ" +
			"W1RW5RJ47nzyMrIJdgPWk8UEqnac2ukkEqG/pc4rvwqwg3zhD3ZV6jmKGbDBbZgX0YpOP4GJGN7TNci5/rU0CQQCurZjU+SncjIxYf26QkRNfWWthTct0lBBSTKyRQbPGNRlmmUAjvP58/uBrKky" +
			"p+rVN1tr2XL9IXw6yO5SI13HVAkBva2VDzTKgHcLP7j9BhuZW77g6CnrU0bXAA2GmuAu8jnXoRfh0w8QY3Wkg57zDhMNbip+xxn15GpT5nghmzGDJAkEAnLFC6ME+SQaXGwftAafyLdVD2vxzJvdv" +
			"ELSRFJhQkNuvFncgry5pR21HmTpPnSc1nka/EsKuIFiNEVsa6goBpQJAI6deyjTQioLMwqkS858SoycFZ+hbHW5tN1XRL/etqYRyxAVEkG4aVtfNrsM0b2jRgOPsKXf36Bw3mEA3Ozk64Q==" +
			"df723820";
*/


    public static final String TOKEN = "token";


    public static final String LOGIN_CODE = "login";

    public static final String LOGIN_PORTAL_CODE = "loginPortal";

    public static final String CHECK_TOKEN = "checkToken";

    public static final String RENEW_TOKEN = "renewTokenExpire";

    public static final String KICKOUT_TOKEN = "kickOutToken";


//	public static final String UP_LINUX_FILE = "/opt/gateway_platform/appendix/";




/*
	public static final String DOC_WEB_URL = "http://172.1.81.195:9100/fax/faxDownloads/";
*/


    public static Map<Integer, String> itSystemType = new HashMap<Integer, String>();

    static {
        itSystemType.put(1, "行情交易类");
        itSystemType.put(2, "业务运营类");
        itSystemType.put(3, "财务风控类");
        itSystemType.put(4, "行政综合类");
        itSystemType.put(5, "It平台管理类");
    }

    public static Map<Integer, String> itRunEnviron = new HashMap<Integer, String>();

    static {
        itRunEnviron.put(1, "生产环境");
        itRunEnviron.put(2, "测试环境");
        itRunEnviron.put(3, "研发环境");
        itRunEnviron.put(4, "云环境");
    }

    public static Map<Integer, String> itBuildType = new HashMap<Integer, String>();

    static {
        itBuildType.put(1, "自主开发");
        itBuildType.put(2, "外包开发");
        itBuildType.put(3, "联合开发");
        itBuildType.put(4, "外部采购");
    }

    public static Map<Integer, String> itBuildStatus = new HashMap<Integer, String>();

    static {
        itBuildStatus.put(1, "使用中");
        itBuildStatus.put(2, "停止使用");
        itBuildStatus.put(3, "停止运行");
        itBuildStatus.put(4, "在建");
    }

    public static Map<Integer, String> itMark = new HashMap<Integer, String>();

    static {
        itMark.put(1, "正常");
        itMark.put(2, "已删除");
    }

    public static Map<Integer, String> itVirtualRunEnviron = new HashMap<Integer, String>();

    static {
        itVirtualRunEnviron.put(0, "生产网");
        itVirtualRunEnviron.put(1, "办公网");
        itVirtualRunEnviron.put(2, "测试网");
    }

    public static Map<Integer, String> itQj = new HashMap<Integer, String>();

    static {
        itQj.put(1, "Nutanix_Cluster");
        itQj.put(2, "MainCluster");
        itQj.put(3, "VMware_Cluster");
        itQj.put(4, "zbCluster");
    }

    public static Map<Integer, String> itBattery = new HashMap<Integer, String>();

    static {
        itBattery.put(1, "单电源");
        itBattery.put(2, "双电源");
    }

    public static Map<Integer, String> itCloudPlatform = new HashMap<Integer, String>();

    static {
        itCloudPlatform.put(0, "阿里公有云");
        itCloudPlatform.put(1, "阿里金融云");
    }

    /**
     * 系统变更类型
     */
    public static Map<Integer, String> systemChangeType = new HashMap<>() {{
            put(0, "资源扩展");
            put(1, "重新部署");
            put(2, "故障处理");
            put(3, "无故障协助处理");
            put(4, "资源变更");
    }};

    /*
     * flow流程查看状态 am_flowable_handle_mode
     * */
    public final static String FLOWABLE_HANDLE_MODE_VIEW ="VIEW";
    public final static String FLOWABLE_HANDLE_MODE_EDIT ="EDIT";


    /*各个系统*/
    public final static String SYS_ID_GATEWAY = "glgateway";

    /*流程类型ID*/
    public final static String FLOW_KEY_EVENT_MANAGE = "IT_EVENT_MANAGE_FLOW";
    public final static String FLOW_KEY_EVENT_IMPROVE = "IT_EVENT_IMPROVE_FLOW";
    public final static String IT_DEV_MANAGE_FLOW = "IT_DEV_MANAGE_FLOW";
    public final static String IT_TEST_TASK = "IT_TEST_TASK";

    public static final String IT_DEV_MANAGE_MEMBER_DEMAND_OK = "1";//需求合规评审人员
    public static final String IT_DEV_MANAGE_MEMBER_DESIGN = "2";//需求设计评审人员

    public final static int DEV_MANAGE_LOG_TYPE = 1;
    public final static int TASK_MANAGE_LOG_TYPE = 2;

    public final static String TASK_MANAGE_LOG_STATUS_WAIT = "1";//待开发
    public final static String TASK_MANAGE_LOG_STATUS_DOING = "2";//进行中
    public final static String TASK_MANAGE_LOG_STATUS_TESTING = "3";//测试中
    public final static String TASK_MANAGE_LOG_STATUS_DONE = "4";//已完成
    public final static String TASK_MANAGE_LOG_STATUS_REJECT = "5";//已拒绝

    /*IT事件管理流程各个节点 IT_EVENT_MANAGE_FLOW*/
    public final static String FLOW_EVENT_MANAGE_NODE_BEGIN_TASK = "beginTask";//发起
    public final static String FLOW_EVENT_MANAGE_NODE_ANALYSIS = "analysisTask";//事件分析
    public final static String FLOW_EVENT_MANAGE_NODE_LEADER = "leaderTask";//团队长审批
    public final static String FLOW_EVENT_MANAGE_NODE_AUDIT = "auditTask";//事件审核
    public final static String FLOW_EVENT_MANAGE_NODE_TRACE = "traceTask";//事件跟踪

    /*IT事件整改流程各个节点 IT_EVENT_IMPROVE_FLOW*/
    public final static String FLOW_EVENT_IMPROVE_NODE_BEGIN_TASK = "beginTask";//发起
    public final static String FLOW_EVENT_IMPROVE_NODE_FINISH_TASK = "improveFinishTask";//整改
    public final static String FLOW_EVENT_IMPROVE_NODE_CONFIRM_TASK = "confirmTask";//审核

    /*IT研发管理流程各个节点 IT_DEV_MANAGE_FLOW*/
    public final static String IT_TESTTASK_NODE_BEGIN_TASK = "beginTask";
    public final static String IT_TESTTASK_NODE_TESTER = "tester";//测试人员测试
    public final static String IT_TESTTASK_NODE_SYSTEMMANAGER = "SystemManager";//测试人员测试
    public final static String IT_TESTTASK_NODE_ONLINE_TASK = "onlineTask";//上线
    public final static String IT_DEV_MANAGE_NODE_BEGIN_TASK = "beginTask";//发起
    public final static String IT_DEV_MANAGE_NODE_DEMAND_FIRST_TASK = "demandFirstTask";//初评
    public final static String IT_DEV_MANAGE_NODE_DEMAND_ANALYSIS_TASK = "demandAnalysisTask";//调研分析
    public final static String IT_DEV_MANAGE_NODE_OK_TASK = "okTask";//合规评审
    public final static String IT_DEV_MANAGE_NODE_OA_OK_TASK = "OAOkTask";//发起oa评审
    public final static String IT_DEV_MANAGE_NODE_RECORD_OK_TASK = "recordOkTask";//发起oa评审
    public final static String IT_DEV_MANAGE_NODE_DEMAND_CONFIRM_TASK = "demandConfirmTask";//发起oa评审
    public final static String IT_DEV_MANAGE_NODE_DESIGN_TASK = "designTask";//发起oa评审
    public final static String IT_DEV_MANAGE_NODE_TASK_ARRANGE_TASK = "taskArrangeTask";//发起oa评审
    public final static String IT_DEV_MANAGE_NODE_TEST_TASK = "testTask";//发起oa评审
    public final static String IT_DEV_MANAGE_NODE_WAIT_ONLINE_TASK = "waitOnlineTask";//发起oa评审
    public final static String IT_DEV_MANAGE_NODE_EVALUE_TASK = "evalueTask";//发起oa评审


    public static final String OBJ_FORM_DATA = "flowableFormData";
    //前端页面类型
    public static final String WEB_FLOW_PAGE_TYPE="flow-";
    public static final String WEB_TABLE_PAGE_TYPE="tableForm-";

}
